- Added a delay at startup to ensure MQTT connection is established before sending data requests. - Implemented error handling for MQTT connection issues, logging warnings and continuing the periodic data request process. - Enhanced logging for task cancellation to provide clearer feedback on sensor operation.