simplified the solution because we have only 1 sensor