This block returns the state of a digital sensor connected to the specified pin. The pins can be set to A1, A2, or S1.
It can be used with sensors such as: