modularize sensor