public async Task <ActionResult <TemperatureHistory> > PostAsync(int temperatureValue, CancellationToken cancellationToken = default)
        {
            var temperatureHistory = await _sensorService.AddTemperatureHistoryAsync(temperatureValue, cancellationToken);

            if (temperatureHistory.Id == 0)
            {
                return(StatusCode(500, "Internal server error, Please check the server logs or contact your adminstrator !"));
            }

            return(Ok(temperatureHistory));
        }