How can I read this YAML file with yaml-cpp:
sensors:
- id: 5
hardwareId: 28-000005a32133
type: 1
- id: 6
hardwareId: 28-000005a32132
type: 4
How can one get/print details of id = 5 (i.e. type and hardwareID) in a long list of such items efficiently?