Need some help for auto fan control

this is a write! did you intend this to be a read?