Temperature controlled fan using GPIO on rpi 3