Moved SensorController to its own file.