Is it possible to add your own sensors to the processing chain?

Is it possible to add your own sensors to the processing chain? And if so, what has to be done?