Cleanup of the light sensor example.