Debugged Sensor, should be working now