Not sure what batteries you are trying to replace but I posted this a while back where I am using wooden dowel as the battery while using usb to power the sensor. I have 6 of these in my house replacing CR2 batteries.