Create sensor now works. Cleaned up some things in the Sensor class as well