coding switch 0101 or 1010 delay time was set to 500ms insted of 1s