How do you know if a man's penis is erect?

if you touch it, it's hard and it will be lifted up from his body. when it's soft it looks dead.