Objective. Presence is an important aspect of user experience in virtual reality. It corresponds to the illusion of being physically located in a virtual environment. This feeling is usually measured through questionnaires that disrupt presence, are subjective and do not allow for real-time measurement. Electroencephalography (EEG), which measures brain activity, is increasingly used to monitor the state of users, especially while immersed in virtual reality. Approach. In this paper, we present a way of evaluating presence, through the measure of the attention dedicated to the real environment via an EEG oddball paradigm. Using breaks in presence (BiP), this experimental protocol constitutes an ecological method for the study of presence, as different levels of presence are experienced in an identical virtual environment. Main results. Through analyzing the EEG data of 18 participants, a significant increase in the neurophysiological reaction to the oddball, i.e., the P300 amplitude, was found in low presence condition compared to high presence condition. This amplitude was significantly correlated with the self-reported measure of presence. Using Riemannian geometry to perform single-trial classification, we present a classification algorithm with 79% accuracy in detecting between two presence conditions. Significance. Taken together our results promote the use of EEG and oddball stimuli to monitor presence offline or in real-time without interrupting the user in the virtual environment.