How to add a sensor to an object using the BGE Python scripting
There is no function addSensor in the API search_1  API search_2.

So you can't add a sensor through python. The sensor requires to be added in logic editor for a single object, but you can add an object with a sensor and controller to the current scene.