minor fixes
NotWorking: refactor to divide in pieces plone sensor
Added parametric threshoudls