Replaced hardcoded rules with defined ones.
Add unit test for new base methods.
Added binary and interval support to check expressions.
Add support for logical operators.
Reorganized sensors to work with new rules.