The function reports the state of the LDR (Light) sensor connected to the selected pin. The block returns 1 when the analog reading of the sensor is greater than the threshold value set by the user. Else it reports 0.
There are lots of pins to which the sensor can be connected:
- Analog Pins: A1, A2, and A3