refactored mains voltage checking and switched working radio frequency to 868MHz for production