put all codes into loop(), watch dog won't cause reboot