Could you explain in detail how you would program an EV3 sensor to do that?