There is a cordless vacuum cleaner with a small light to indicate how much battery is left. When there is plenty left, the light is green, but when there isn't much left, the light turns orange.
You can tell when the battery is low by the color of the light.
You can tell when the battery is low from the color of the light.
When you are talking about this vacuum cleaner, which can you say, "by the color of the light" or "from the color of the light"?