Reading bit from Arduino Sensors