California
Penal Code PC § 288.3
(a) Every person who contacts or communicates with a minor, or attempts to contact or communicate with a minor, who knows or reasonably should know that the person is a minor, with intent to commit an offense specified in Section 207 , 209 , 261 , 264.1 , 273a , 286 , 287 , 288 , 288.2, 289, 311.1, 311.2, 311.4 or 311.11, or former Section 288a, involving the minor shall be punished by imprisonment in the state prison for the term prescribed for an attempt to commit the intended offense.
(b) As used in this section, “contacts or communicates with” shall include direct and indirect contact or communication that may be achieved personally or by use of an agent or agency, any print medium, any postal service, a common carrier or communication common carrier, any electronic communications system, or any telecommunications, wire, computer, or radio communications device or system.
(c) A person convicted of a violation of subdivision (a) who has previously been convicted of a violation of subdivision (a) shall be punished by an additional and consecutive term of imprisonment in the state prison for five years.