def moduleAct(self): if self.nowData['lux'] < self.wantData['lux']: actuating.led(self) if self.nowData['waterLv'] < self.wantData['waterLv']: actuating.buzzer(self) if self.nowData['ph'] < self.wantData['ph']: actuating.pump(self)
def moduleAct(): if(nowdata['lux'] < wantdata['lux']): actuating.led() if(nowdata['waterLv'] < wantdata['waterLv']): actuating.buzzer() if(nowdata['ph'] < wantdata['ph']): actuating.valve()