squats and sore knees

My knees are really starting to hurt with all the squats that I have been doing. Could this be from technique or does it just take time to build up strength? I have been really increasing how much I've been doing and squatting with 30 lbs. It's not trouble doing them, in fact I feel like I could go for days, but it's my damn knees that make it hard.