Using the Silicon Labs’s Si1141 sensor and C8051F9xx series microcontroller for touchless lavatory. Link here
The Si1141 is a single-channel, reflectance-based proximity detector with an integrated ambient light sensor and can be used as a touchless sensor IC in lavatory appliances. As a proximity detector, the Si1141 has two infrared photodiodes, flexible ADC integration time, and multiple signal ranges. In addition to the configurable ADC sensitivity configuration settings, the Si1141 can dynamically drive an irLED with anywhere from 6 to 400 mA. This high level of flexibility in the ADC, photodiode choice, and irLED drive strength all contribute to allow the end product to operate under various ambient light conditions.