Arduino boards come with an array of programmable pins, serving as inputs or outputs. These pins allow easy interfacing with sensors for collecting data and actuators like motors for action, making it possible to create interactive and self-operating robots.