Added code for testing sensors.