This is a program for turning the fan motor on and off with a LIDAR sensor. If the distance read is less than 2 feet, the fan turns on to a set speed. Otherwise, the fan turns off. Bluetooth control has also been implemented to increase/decrease the fan speed and power on/off the fan.

Dependencies:   mbed Servo mbed-rtos X_NUCLEO_53L0A1