avoid to store configuration in psensor struct