If the person who committed arson only intended to burn the structure down or burn the land then the person convicted of arson can spend a minimum of 5 years in prison.
If the person who committed arson intended to cause harm or death to the people in the home or building they can get 15 years in prison or even 25 years to life in prison for the arson with intent to kill or harm someone or people.
If you set fire to your own home or building to do insurance fraud you could face 30 years in prison so never every set fire to your own place to try and get insurance.
The fire marshals and fire inspectors can find out through evidence as they are well trained to find out if the place caught fire as a result of arson or not.