Forty-six-year-old Ernest Garza of Romeoville is also charged with disorderly conduct.
Police say Garza used his phone to take pictures of a 9-year-old girl at a library in Romeoville on Monday.
Police say they then found pornographic images of children on Garza's phone.