To improve electrical operational flexibility in use and save energy, a universal multi-function digital remote control electronic switch for variety of household appliances is developed by adopting wireless sensor networks and infrared sensing technology. To NRF9E5 wireless microcontroller as the core, electronic switch that formed by the remote control and a number of switch nodes forms short-distance wireless communications network. Remote control is equipped with clock circuit, buttons and LCD display; switch node with infrared sensor, human body detection circuit, relay and control circuit. Switch can be controlled by remote control, human infrared sensor or setting time. The application shows that it greatly increases operational flexibility with easily integrating with various existing electrical switches and has obvious energy saving effect.