A touch sensor is a device that can detect when it has been touched or come into contact with something.