The most commonly used device to determine the presence of oil in rocks is a geophone.
geophone
A geophone is a device used to determine the presence of oil in rocks. Sound waves are sent through the rocks and the reflected waves are analysed to check whether oil source is present or not.