generic interfaces to working with sensors