Lamp outlet smoke detector

1st year student at The Technical University we had learn CAD in Soildworks and we had to develop a product. As most homes have battery powered smoke detector and when it runs low people don\’t replace the battery right away. I therefore developed a smoke detector there is getting changed when the lamp goes on. 

The project was a design project there but should be technical possible.
But having learned electronic in High School and the wish to learn Arduino I developed a circuit there was able to detect smoke and alarm with no power on.