Control a fan connected to Raspberry Pi.
The aim of this script is to regulate a fan attached to the Raspberry Pi, so that it is triggered by a given threshoold value, as opposed to always stay on. The script should then added to a cron/crontab schedule, as a regular temperature check.