setdigitaloutput() The function sets the digital state of the specified pin to HIGH or LOW / 0V or 3.3V.
readanaloginput() The function reads the analog value of the sensors connected to the specified pin. The function returns the int value between 0 to 4096.