A control device for a piece of powered equipment having an electronic sensor and an electronic control board for controlling the equipment depending on a control signal from the sensor. The electronic sensor is a contactless optical sensor, provided in an interface area of the control device, configured to measure a distance separating at least one target, located in the interface area, and the optical sensor, the electronic board being configured to establish a first control of a main function of the powered equipment, when a signal from the optical sensor is established for a measured distance within a first range of distances, and to establish a control for at least one additional function of the powered equipment, different from the main function, when a signal from the optical sensor is established for a measured distance greater than the first range of distances.