Implemented InterruptSensor and updated test sketch