i am using 16f877a, Please help me to make a program (C or Asm never mind) for my project:

- port a0 as a input from LM34 sensor (small voltage output where 10mV/degree Farrenhiet- i want use 0.95V to activate port a0)
-port a1 as input from mini switch
-port c0 as a output to relay circuit.

The senario is if any input high, output (to relay and fan) will be on.

Hopely u all can help me, please.. thanks.

ps; i am blur to use adc