The solar panels can increase a homes value and you could recover the investment back when you go to sell your house if the right buyer comes along and is wanting to deal with solar panels.
Solar panels can eventually be a huge savings for you on electricity but it will take a few years to recover the cost of installing solar panels.