made sensors and actuators share a common template