implemented funktions and variables to control a fan
a potentiometer gives the resistance that implies the speeed of the fan