Hi @coolio
I wrote some code for an aquarium controller for a user in this thread--you could adapt from there: