AP psychology

How did Ernst weber contribute to psychology? I found that he did the Two point threshold and the just noticeable difference but how is it connected to psychology?​