Skip to content

Instantly share code, notes, and snippets.

View romamaslennikov's full-sized avatar
🏠
Working from home

Roma Maslennikov romamaslennikov

🏠
Working from home
View GitHub Profile
#!/usr/bin/env python3
# Author: Edoardo Paolo Scalafiotti <edoardo849@gmail.com>
import os
from time import sleep
import signal
import sys
import RPi.GPIO as GPIO
pin = 12 # The pin ID, edit here to change it
maxTMP = 55 # The maximum temperature in Celsius after which we trigger the fan