How do touchless kitchen faucets work?

How do touchless kitchen faucets work?

Touchless faucets consist of four main parts: a spout, sensor window, solenoid valve (a type of electromagnet), and power source. The sensor is activated when you place your hand or object near the sensor windows, and a signal is sent to the solenoid valve to open and allow water to flow through the spout.