Organize sensor and additonal config in rust struct
I am using multiple sensors in an ESP32 project and am trying to organize the sensor-structs together with other parameters, that configure how the measurements get processed later, in a struct. This is so that the sensor and its configs are together in one place. The sensor is never measured in a context without the other configs, so putting all in one struct seemed like the most sensible way (from an OOP standpoint).