How to read a sensor help needed

Well, let's start with this circuit and see if it meets your needs.

--
The Gadget Shield: accelerometer, RGB LED, IR transmit/receive, light sensor, potentiometers, pushbuttons