That depends entirely on the machine!
That depends on the machine - and how much time/effort/money you’re prepared to put into it…
Again - it depends.
Like “The Internet”, IoT is not a single, simple thing - it requires the coming-together of many and diverse different skills, technologies, applications, etc.