There's nothing like adding the risk of electrocution to the activity of stewing in one's juices lol.
I suggest just getting out of the tub once you're bored.
But yeah, in the specifications electronics are usually rated for the maximum humidity level they should be operated in and you can get a humidity monitor pretty cheap on Amazon (link). Anything involving steam would likely probably crossthis threshold though.
Life is like a box of chocolates, it doesn't last as long for fat people.