Researchers have developed a light-based technique for measuring very weak magnetic fields, such as those produced when neurons fire in the brain.