Renting to a lodger can be flexible – it would be up to you on how long they stay.
The additional income may allow you to stay in your property rather than having to move.
If you are receiving benefits you must notify your local housing benefit office and the Job Centre Plus of the increase in your income. The additional income may mean your benefit reduces but you are still better off with the additional income overall.