public async Task <IActionResult> AddSensorData([FromBody, Required] SensorDataModel sensorDataModel)
        {
            if (sensorDataModel == null)
            {
                return(BadRequest());
            }
            await _repository.AddSensorDataAsync(sensorDataModel);

            _mqtt.Publish(new Data(double.Parse(sensorDataModel.Value), sensorDataModel.Type), "sensor/data");
            return(Ok());
        }