Communicating with sensors and actuators