Any number of threads can be passed as parameter.
Added simplified tree of sensors - always succeeding night filter.