Getting one’s hands on APDS9960 is very easy, that can be used to detect hand gestures. Here we use this sensor to control lights on Home Assistant based on a gesture observed on sensor.

Software

Libraries used:

  1. HARestAPI GitHub: debsahu/HARestAPI
  2. APDS9960 GitHub: SteveQuinn1/SparkFun_APDS-9960_Sensor_Arduino_Library
  3. SSD1306 OLED I2C GitHub: ThingPulse/esp8266-oled-ssd1306