Midmill (on 1841 Census) was a hamlet and there are several households under that name. The main one is likely to be
Laurie Wilson (50) Flax Mill spinner born Fife
Janet Wilson (50) born Fife
Thomas Wilson (15) Agricultural Labourer born Fife.
At nearby Craigs there is a Law Wilson (20) farmer, Margaret (20) and John (14) but I don't know if they are related to the older Wilsons.
In 1831 Laurence Wilson was involved in a partnership court case, against a William Beveridge, regarding a weaving business carried on at Midmiln. Subsequently, as reported in the Annals of Dunfermline "The late Mr. Laurence Wilson, of Mid-Mill, near Dunfermline, previous to his leaving the locality for America, in the end of July, 1855, had a public sale of his household effects".
Do you need the other households in the hamlet in 1841?
Incidentally, Midmill House is for sale through local agent at 695,000+ pounds.
Dod