baby wakes up if am not next to him

My son is 5 months and we share the bed. He wakes up every time I'm not there 😳 I rock him to sleep turn out him down, he would sleep for ten mins then wake up. When he wakes up in the middle of the night and finds me next to him he goes back to sleep. Any tricks? I