Fixed sensors on map and added most of the logic for sensors.