LEGO 【MINDSTORMS】EV3
Infrared Sensor Block
Infrared Sensor Block - Overview -
The Infrared Sensor block gets data from the Infrared Sensor. You can measure sensor data in the Proximity, Beacon, and Remote modes and get Numeric output. You can also compare sensor data to an input value and get a Logic (True or False) output.
*The Infrared Sensor block outputs data with Data Wires.
Use the Port Selector on the top of the block to make sure that the sensor port number (1, 2, 3, or 4) matches the port on the EV3 Brick that the Infrared Sensor is connected to.
Use the Mode Selector to select the mode for the block. The Inputs and Outputs available will change depending on the mode.