A composition for detecting biofilm on an eyelid margin includes a dye that binds to the biofilm and a solution that is biocompatible with the eye. A method for detecting biofilm on an eyelid margin of an eye includes applying a solution to the eye or the eyelid margin so that a dye in the solution binds to the biofilm. A handheld camera (10) for detecting biofilm on an eyelid margin of an eye includes a housing (12), an image sensor (46), and a lens (44) including a focal length determined by a distance between the lens (44) and the eyelid margin. A method for detecting biofilm on an eyelid margin includes capturing an image of the eyelid margin using a handheld camera (10) and determining if the biofilm is present on the eyelid margin. A system for detecting biofilm on an eyelid margin of an eye includes a composition and a handheld camera (10).