RCTime is what you use if you have a PIC with no ADC pins or run out of them.
RCTime exists because BMicro produced a compiler/IDE years ago that contained all the Stamp Basic commands so as to make it instantly appealing to former Stamp users. The main selling point was the addition of commands that took advantage of the builtin hardware in the later PICs, namely ADC pins, USART, HPWM, etc.
You also have access to comparators in the new Atoms that have access to selectable voltage references in the PIC. These are VERY accurate. Get the data sheet for the PIC16F88 (used in the Nano18) and look up the specs and use guides. All the register names and their associated bits (register.0 to register.7, as well as the proper bit name in the sheet) are predefined in the Nano definitions. If the spec sheet says you turn on a comparator by setting the 4th bit of registerX, you just write
Code:
RegisterX.3 = 1
and you're done. Then you have to usually monitor a bit in a register there or elswhere to see if the comparator changed state.
Let's say the bit of interest goes to a "0" when the comparator detects the capacitor has charged past a particular voltage. Your IF looks like
Code:
IF RegisterX.7 = 0 then Set_Valve ; Set_Valve is a routine that controls the floor heater
Fairly simple.
'Luck with your project.
