It would have to be set inside the tank and it wouldn't be all that accurate. If you want to cheap out get a light dimmer.