Spin Dynamics, Pulsed Decoupling, And Deep Reinforcement Learning For Quantum Sensing