Method for checking wether a toilet is occupied using streamer and php