Touch Sensors

To connect from the MATLAB software to the EV3 Touch Sensor (item number 45507), use the touchSensor function to create a touchSensor object.

To check whether an item is pressing the front of the sensor, use the readTouch function with the touchSensor object. The touch sensor returns a 0 if nothing is pressing the sensor, and 1 if something is pressing the sensor.

See Also