Knowledge Base

Touch Sensor


A touch sensor is a simple push button that can either be pressed or released. The sensor's values are represented by true/false readings in the HUD: pressed = true; released = false.

This sensor (or sensors) is usually placed on the robot's front, and can be used to determine when to stop driving. For example, once the robot hits a wall or some other object.


 output-onlinepngtools__231_.png  Here is EV3 Robot's touch sensor in action:



output-onlinepngtools__10_.png And here is Ruby Robot's: 



See also:

Get Touch is Pressed Block

Wait Until Touch (EV3)


Was this article helpful?
4 out of 6 found this helpful


  • Avatar
    Paulina Garcia Munoz

    This was helpful for me.

    Comment actions Permalink
  • Avatar
    Elijah Flores

    yes it was helpful

    Comment actions Permalink

Please sign in to leave a comment.