Added a sensor example.