added function pointers to organize sensors