Considering that Sensor parameter is Boolean, I imagine it is to validate something. I am not very familiar with this pluguin.
I will try the first plugin and do the same thing as your main objective. Do you have a deadline, or it is your personal project? I can test this tomorrow, today I have some works to do.