[OBSOLETE] Sonoff, Sonoff TH, S20, Dual, 4CH, POW, & Touch Device Handler & SmartApp ($5 & $10 Smart Switches)

Can you fix code below. I want “if motion is active then relay1 on Sonoff Dual is turn on” Thanks