Sensor: Fixed timing issue, timer now works correctly for times greater than timer interval(did not change elapsed before).

Also converted the sensor and controller to better fit event based design.

Controller: Added serial input, buggy at the moment as it keeps thinking there is input several characters after the actual input.