Controlling a fan based on temperature readings is a crucial aspect in various fields of engineering such as HVAC systems, industrial process