detect AC voltage

Best not to tempt fate with mains.
I wouldnt worry about 24v at all though.

The odd thing is that every single time I've been zapped, I've never been deliberately doing anything with mains.
Heck. One time was a 300v discharge from a camera flash which ran off 4 AAs.