https://www.electronicsforu.com/electronics-projects/fan-speed-regulator-using-pic16f73
Fan Speed Increasing Regulator Using PIC16F73