Added analog input and motion sensor test code.