Transforming return state with better info. Using env variables for arduino ip and ws server