The Virginia Senate has approved a bill that would make it illegal to smoke in a car with a child inside.

The measure also includes a $100 fine for anyone found guilty. The bill was proposed by Sen. Ralph S. Northam (D-Norfolk), a pediatric neurologist who unsuccessfully pushed for similar legislation in 2011.

Northam, who is also running for lieutenant governor, said Thursday that the bill will protect children from the ill effects of secondhand smoke and could cut down on health-care costs.

The Senate approved the bill by a 30 to 10 vote. The House version of the bill failed in subcommittee this month. House delegates can now vote on the Senate version of the legislation.