simplified code to one function - grow lamp trigger