Hello!
At my car, exteriors mirrors heating was done with help of an electronic module, based on a temperature sensor readings. Because that module is broken and too expensive to buy, after some searching on web, I found a schematic which contain a PIC12F675 and a LM35 temperature sensor, used for PWM a fan. Also, I found the necessary code.
Because I have no experience in PicBasicPro, after several attempts to modify the code, I had to give up and call for help. The code is written approx. 70%, only the main iteration is missing.
So, please, someone to complete blank spaces on attached file.

Thank you so much and Merry Christmas to all!

PWM for heating the mirrors.bas