Connecting and reading value