I created this arduino based auto top off with an optical sensor

you will need a mosfet type-n i used the IRFZ44N, also a 10k resistor