implemented a simple peltier control function