--[[ @title no motion @param a MD-Zeit @default a 200 @param b Loop-Zeit @default b 200 ]] time_md = a time_loop = b res = 0 count = 10 repeat res = md_detect_motion(6, 4, 1, time_md, 10, 10, 1, 0, 0, 0, 0, 0, 0, 0, 1, 50) if res > 0 then count = count + 1 end sleep(time_loop) count = count - 1 print(count) --Kontroll-Print, sollt im normalen Betrieb weggelassen werden. until count < 1 print("No Motion")