Fix to avoid logging several sensors in the same folder when starting the logging within the same second