The problem is that it is able to detect the hand from around 2m away just fine when the sensor is placed horizontally. One possible reason I could think of for the problem is that I did bend the leads so the sensor would fit flush on a breadboard, however, this reason sounds very farfetched to me as, how would damage like that limit the sensing range of a sensor?