Oh Boy! The first rule of any diesel engine is to NEVER run out of fuel. Always start with the tank full and monitor your use and you will not have this problem.
There have been threads and posts in the past by TBN members regarding the accuracy of fuel guages on Kubota tractors. Members have stated that the fuel guages are sometimes, unreliable. Just a thought for the future.