Yes, but first you have to crack the toilet.
I cannot answer your question regarding a build, but you could modify a pressure sensing switch with silicone tube and a copper pipe so that it would withstand the heat.
If you are interested, I have a used one of these that I am willing to sell for about 50% of a new one.
http://www.spectrapure.com/St_alc_p1.htm
Enter your email address to join: