A system and method for automatic detection of x-rays at an x-ray sensor. A source emits x-ray radiation towards an x-ray sensor, and the x-ray sensor automatically detects the x-ray radiation. The x-ray sensor automatically detects x-ray radiation by evaluating a time series and determining that a voltage threshold is crossed a certain amount of time earlier than the average time it takes the voltage threshold to be crossed from dark current and other noise.