I don’t think so. In order to make such a machine, you must create a lamp. As an 11 year old, I have NO idea how that is made, so just act like it’s made. You would then have to add sensors in order for the lamp to work. Sensors are made from solar panels, I think, so they would use solar panels. Then they would have to attach the panel and the lamp together with wires. If you shine a light at the panel and the light stays dead, try again. Then they would have to hide the panel so it would look like a normal lamp. Then test it out again to make sure it works. If not, again, you did something wrong. It may seem simple, but with my age I made it look like that because I’m an idiot.
At least, that’s how I think it goes. But are their really lamps like that? And am I correct on my estimate?