Lyme disease tests measure Borrelia burgdorferi antibodies in the blood or in the cerebrospinal fluid (CSF) if there are signs and symptoms of central nervous system disease. These antibodies are produced by the body's immune system in response to exposure to Borrelia burgdorferi (B. burgdorferi), the bacterium that causes Lyme disease. Infected deer ticks or western black legged ticks transmit this bacterium to a person through a bite.