foreach my $s (@ts) { checkTempSensor($s); } foreach my $s (@hs) { checkHumiSensor($s); }}