Adding debugging and modifying sensor input pin