why does not else work?
else:
print (“not green”)
I want to indicate when there is no green
while(True):
img = sensor.snapshot()
for blob in img.find_blobs(thresholds, pixels_threshold=2000, area_threshold=1120, merge=True):
if blob.code() == 2:
img.draw_rectangle(blob.rect()) # works
else:
print("not green") # don't work