The block activates the sprite under this hat block when the sensor connected to the selected pin becomes HIGH (or 3.3V). The block is used for digital sensors like PIR Sensor, Flame Sensor, or the IR Sensor.
There are lots of pins to which the sensor can be connected:
- Digital Pin: D1, D2 or D3
- Analog Pins: A1 and A2
The pin can be selected from the dropdown.