What is the best solution for this? New threads for all sensors? Every sensor in separate Python script?

I would have thought threads but you could write each as separate programs. Then write another master program which can import those programs and run them as threads of itself. Then you have both, can test to see which works best, which you prefer.

hippy wrote:
I would have thought threads but you could write each as separate programs. Then write another master program which can import those programs and run them as threads of itself. Then you have both, can test to see which works best, which you prefer.

Thanks for advice. I will get sensors next week, and then i will see what will be better. I think, new threads for all sensors is better than separate files.