Hayes, who was released by Brentford last week has been training with the Iron with a view to switch prior to the January transfer window.
The frontman, 30, will not be able to play until January because of an agreement in his release deal with the Bees.
He has scored over 60 goals for the Iron in two previous spells.