Replacing a Hardwired Smoke Detector with a Battery Powered Detector

I wrote some code for turning a MIMOlite into a hardwired smoke detector monitor.

heres my thread

You can also do it with an RS100HC.