Atomic-scale spin sensing with a single molecule