Check Temperature

Function that should control the temperature and will be called on in the Final Project script. However, functionality has not been tested. I know there's a lot of faulty logic in there right now. Plus, it doesn't use PID.