Replacing a Hardwired Smoke Detector with a Battery Powered Detector

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

heres my thread

You can also do it with an [RS100HC][2].