Blender get sensor from pulse?

How do I find what sensor that sent the posetive pulse without having to ask:
if sensor1.isPositive():

Because its get a little nagy and it confuses everything…
So what command should i use to get the sensor that sent the pulse that actuivated the script?

In a script to find if you have activated a sensor you have to use

if sensor1.isPositive():

and i’ve always seen it with

and sensor1.isTriggered():

So it would be

if sensor1.isPositive(): and sensor1.isTriggered():

But i dont know much about python…get that double checked.