Fake the optical sensor messages for easy testing.