"He's onto me" means "I'm trying to fool him, but he discovered the truth."
"I hid my son's birthday presents in my closet, but I noticed today that, mysteriously, my closet door has come open. I think he's onto me." That is, I think he's discovered the presents I was trying to hide.