Or the increase in temp over the land causes the column of air to expand leading to a pressure differential at about 500' causing a flow of air from land to sea at height. This in turn leads to a pressure differential on the surface (slightly higher over the sea) and starts the onshore breeze. With time the Coriolis force sets in and slowly diverts the onshore breeze to the right (N hemisphere).