added functions and variables for the peltier element