Heat detection with small PIC microcontroller