Modifying 3 in 1 EZ-Motion sensor to Presence sensor

Good day Sirs.
Please advice, how can realize the following:

  1. Can I somehow modify 3 EZ Motion sensor to use it as Presence sensor (I don’t want that the light turned off at the bathroom when someone is in it for example)
  2. Another situation, which equipment do i need to realize the following: I’m going to bathroom to clean my teeth for example, the motion sensor turn on the light when I’ve entered, the light is staying on during my presence, then when I’ve finished - I’m leaving the bathroom and the light is turning off immediately. As I can understand, I need presence detector, some outlet module or dimmer. But the problem is following: I’ll set the presence sensor to shut down for 40 secs, this time will be Ok for me, but I don’t want that the light will remain in On position during 40 sec after leaving the bathrom. How can I resolve this?
    P.S. the door sensor won’t be useful at my situation, the door in bathroom can’t be opened or closed due to different situations.