|
|
@ -35,7 +35,7 @@ def main(): |
|
|
|
# print(the_reading) # For testing. |
|
|
|
# print(the_reading) # For testing. |
|
|
|
if the_reading > 48: |
|
|
|
if the_reading > 48: |
|
|
|
# Print for testing. |
|
|
|
# Print for testing. |
|
|
|
print(f"[INFO] Light is on -- {the_reading}.") |
|
|
|
# print(f"[INFO] Light is on -- {the_reading}.") |
|
|
|
GPIO.output(relay_pin, GPIO.HIGH) |
|
|
|
GPIO.output(relay_pin, GPIO.HIGH) |
|
|
|
else: |
|
|
|
else: |
|
|
|
# Print for testing. |
|
|
|
# Print for testing. |
|
|
|