Sonoff contact sensor battery issues

I think I have found and fixed the bugs. Please update to 'Tuya Zigbee Contact Sensor++ w/ healthStatus' ver. '1.2.3' '2024/07/10 6:37 PM' .

My tests are OK.

Something I noticed when I first installed about 5 of these: The batteries don’t necessarily make great contact. The metal that holds the battery is very flimsy. I had one contact sensor that wasn’t working well until I added a folded up piece of paper over the battery to hold it in place.