Sensors setup, not perfect code