Crying when I put him down

My baby is 2 weeks old. The first week he didn’t care if I put him down but now when I put him down (usually when he’s sleeping) he wakes up & starts crying for me. I try to not be in the habit of constantly holding him & thought I was doing a good job but I’m not sure what I’m doing wrong…anyone have any thoughts on this?