implement sensors and digital inputs