Editor’s Note: This story has been updated to show the correct number of states which allow cameras in residents’ rooms.

Legislation allowing families to install cameras in nursing home rooms was signed into law by Illinois Gov. Bruce Rauner (R) last week.

The law, which will take effect in January, includes specifications for video, audio and still cameras in nursing home rooms. It also requires facilities to obtain consent from roommates when one resident requests having a camera installed in their room. Nursing homes must post signs notifying residents and visitors that rooms may be monitored.

Illinois is the sixth state to pass legislation allowing cameras to be installed in nursing home rooms — New Mexico, Oklahoma, Texas, and Washington have similar laws. Missouri is reportedly considering similar legislation. Maryland has guidelines for facilities that choose to allow residents to install cameras upon request. California allows cameras in common areas, but not resident rooms.