the only possible way would be to use an ultrasonic sensor like if it saw fast movement or a sound sensor that heard the clap unless you could get something to sense sound waves
My Lava Lamp said to use an A 15 aplliance bulb. I went to Walmart and they didn't have them so I thought the A 19 replaced it. Worng. The A 19 does not fit. My lava lamp had a sticker iside of it...