Auto control raspberry fan with 5V. Turn the fan when the tempreture is higher than 45°C, turn off fan when the CPU tempreture is lower than 39°C. AutoControlRaspberry depends on wiringPi.
git clone https://github.com/BDZNH/AutoControlRaspberryFan.git
cd AutoControlRaspberryFan
make
sudo make install
git clone https://github.com/BDZNH/AutoControlRaspberryFan.git
cd AutoControlRaspberryFan
make uninstall