For the spell's duration, you immediately become aware of whether there are any hidden creatures within range, but not their exact location. You can't detect the presence of creatures without souls this way.
On your turn, you can use a bonus action to end the spell and force a hidden creature within range to make a Wisdom saving throw. On a failure, the hidden creature is immediately revealed, and it can't take the Hide action again until the end of your next turn.