refactored shared code between dummy value and sensor value