added sensor functionality -briat