Update Main.py

Fixed broadcasting data with a timer for resetting.