voltage will need to be higher than the 0.7V set by a single diode:
W= <sup>1</sup> / <sub>2</sub> C...
Datalogging the voltage accross the Capacitor C1 by inputing it to the analog input (e.g. pin A0) of ... as ====
A learning function could be incorporated by using fuses. A fuse that controls a particular be