Finished implementing Sensor functions