get ir reading
#
Block#
DescriptionGets the current IR reading from Zumi's sensors. The closer the value is to 0, the more IR light is being detected. Used commonly when detecting objects since an object or obstacle nearby will reflect IR light back to the receiver.
#
Parameters#
ReturnsIR sensor value: An integer from 0-255