Simple arduino code for reading inputs